package cn.signalpha.modules.shop.vo;

import cn.signalpha.modules.shop.entity.Order;
import cn.signalpha.modules.shop.entity.SellerAddress;
import cn.signalpha.modules.shop.entity.UserAddress;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 订单视图实体类
 *
 * @author suguangjun
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "OrderVO对象", description = "订单")
public class OrderVO extends Order {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = " 商户信息")
	private SellerVO seller;

	@ApiModelProperty(value = "用户昵称")
	private String userNickName;
	@ApiModelProperty(value = "用户头像")
	private String userAvatar;
	@ApiModelProperty(value = "用户手机")
	private String userMobile;

	@ApiModelProperty(value = "收货信息")
	private UserAddress logistics;
	@ApiModelProperty(value = "商户自提地址")
	private SellerAddress logisticsSeller;
	@ApiModelProperty(value = "同城配送信息")
	private OrderDeliveryVO orderDeliveryVO;


	@Data
	public static class CountVO implements Serializable {
		private static final long serialVersionUID = 1L;
		@ApiModelProperty(value = "待付款")
		private Long count1;
		@ApiModelProperty(value = "待发货")
		private Long count2;
		@ApiModelProperty(value = "待收货")
		private Long count3;
		@ApiModelProperty(value = "待评价")
		private Long count4;
		@ApiModelProperty(value = "售后")
		private Long count5;
	}

}
